package com.oocl.aeat.service;

import java.util.List;

import com.oocl.aeat.dto.MerchantDto;
import com.oocl.aeat.pojo.Merchant;
import com.oocl.aeat.tx.Tx;

public interface MerchantService {
	@Tx
	boolean addMerchant(Merchant merchant);
	@Tx
	boolean deleteMerchant(String id);
	@Tx
	boolean updateMerchant(Merchant merchant);
	
	List<Merchant> queryAllMerchant(Integer block);
	
	Merchant queryMerchantById(String id);
	
	List<MerchantDto> convertList(List<Merchant> merchants);
	
	MerchantDto convert(Merchant merchant);
}
